// 从环境变量中获取配置
const WS_HOST = import.meta.env.VITE_WS_HOST || '127.0.0.1';
const WS_PORT = import.meta.env.VITE_WS_PORT || '8004';
const WS_PATH = import.meta.env.VITE_WS_PATH || '/ws/connect';

// 导出WebSocket地址
export const WS_ADDRESS = `ws://${WS_HOST}:${WS_PORT}${WS_PATH}`;
export const WS_ADDRESS_CONNECT = `ws://${WS_HOST}:${WS_PORT}/ws/connect`;

// 导出API基础地址
export const API_BASE_URL = import.meta.env.VITE_API_BASE_URL || 'http://127.0.0.1:8004';

// 导出图片上传地址
export const IMAGE_UPLOAD_URL = import.meta.env.VITE_IMAGE_UPLOAD_URL || 'http://111.230.195.134:8080/group1/upload';
